package com.bj58.ecdata.calc.dbservice.dao.model;

/**
 * @author lichao
 *
 */
public class DataPoint {
	private long time;
	private Object value;

	public DataPoint() {
	}

	/**
	 * @param time
	 * @param value
	 */
	public DataPoint(long time, Object value) {
		super();
		this.time = time;
		this.value = value;
	}

	/**
	 * @return the time
	 */
	public long getTime() {
		return time;
	}

	/**
	 * @param time
	 *            the time to set
	 */
	public void setTime(long time) {
		this.time = time;
	}

	/**
	 * @return the value
	 */
	public Object getValue() {
		return value;
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return String.format("DataPoint [time=%s, value=%s]", time, value);
	}

}
